#define _CRT_SECURE_NO_WARNINGS 1
#include"LTNode.h"


void test1()
{
	LTNode* plist = Init();
	LTNPushBack(plist, 1);
	LTNPushBack(plist, 2);
	LTNPushBack(plist, 3);
	LTNPushBack(plist, 4);
	LTNPrint(plist);
	/*LTNpushFront(plist, 5);
	LTNpushFront(plist, 6);
	LTNpushFront(plist, 7);
	LTNPrint(plist);*/
	LTNPopBack(plist);
	LTNPopBack(plist);
	LTNPopBack(plist);
	LTNPopBack(plist);
	LTNPopBack(plist);
	LTNPrint(plist);
	/*LTNPopFront(plist);
	LTNPopFront(plist);
	LTNPopFront(plist);

	LTNPrint(plist);*/

}
void test2()
{
	LTNode* plist = Init();
	LTNPushBack(plist, 1);
	LTNPushBack(plist, 2);
	LTNPushBack(plist, 3);
	LTNPushBack(plist, 4);
	LTNPrint(plist);
	LTNode* ret = LTFind(plist, 4);
	if (ret)
		printf("%d\n", ret->data);
	//LTInsert(ret, 5);
	//LTErase(plist, ret);
	LTNPrint(plist);
	LTDestroy(plist);
}
int main()
{
	//test1();
	//test2();
	return 0;
}